<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>BoboCMS后台管理 - <?php echo ($title); ?></title>
		<!--                       CSS                       -->
		<!-- Reset Stylesheet -->
		<link rel="stylesheet" href="__APP__/resources/css/console/reset.css" type="text/css" media="screen" />
		<!-- Main Stylesheet -->
		<link rel="stylesheet" href="__APP__/resources/css/console/style.css" type="text/css" media="screen" />
		
		<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
		<link rel="stylesheet" href="__APP__/resources/console/css/invalid.css" type="text/css" media="screen" />	
		
		<!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="resources/css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="resources/css/red.css" type="text/css" media="screen" />  
	 
		-->
		
		<!-- Internet Explorer Fixes Stylesheet -->
		
		<!--[if lte IE 7]>
			<link rel="stylesheet" href="resources/css/ie.css" type="text/css" media="screen" />
		<![endif]-->
		
		<!--                       Javascripts                       -->
  
		<!-- jQuery -->
		<script type="text/javascript" src="__APP__/resources/js/jquery-1.5.1.js"></script>
		
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="__APP__/resources/js/simpla.jquery.configuration.js"></script>
                <script type="text/javascript" src="__APP__/resources/js/artDialog.min.js"></script>		
		<!-- Facebox jQuery Plugin -->
		<script type="text/javascript" src="__APP__/resources/js/facebox.js"></script>
		<?php if(ACTION_NAME == 'articleadd' || ACTION_NAME == 'articleedit'){ ?>
                <script type="text/javascript" src="__APP__/resources/js/xheditor-1.1.6-zh-cn.min.js"></script>
                <script type="text/javascript" src="__APP__/resources/js/xheditor_plugins/ubb.min.js"></script>
                <?php } ?>
		<!-- Internet Explorer .png-fix -->
		
		<!--[if IE 6]>
			<script type="text/javascript" src="__APP__/resources/js/DD_belatedPNG_0.0.8a-min.js"></script>
			<script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->
		
	</head>
  
	<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		
		<div id="sidebar"><div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
			
			<h1 id="sidebar-title"><a href="#">BoboCMS后台管理</a></h1>
		  
			<!-- Logo (221px wide) -->
			<a href="#"><img id="logo" src="__APP__/resources/image/console/logo.png" alt="Simpla Admin logo" /></a>
		  
			<!-- Sidebar Profile links -->
			<div id="profile-links">
				Hello, <a href="#" title="Edit your profile"><?php echo ($user["username"]); ?></a><!--, you have <a href="#messages" rel="modal" title="3 Messages">3 Messages</a><br />-->
				<br />
				<a href="<?php echo U('Home-main/index');?>" title="查看前台首页">查看前台首页</a> | <a href="#" title="查看前台首页">修改密码</a> | <a href="<?php echo U('member/logout');?>" title="$this->checkConsoleLogin() && $this->redirect('main/index');登出">登出</a>
			</div>        
			
			<ul id="main-nav">  <!-- Accordion Menu -->
                <?php if(is_array($menu)): $i = 0; $__LIST__ = $menu;$_count = count($__LIST__);if( $_count==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><li>
					<a href="<?php echo ($vo["url"]); ?>" class="nav-top-item <?php echo ($currTopNav["$key"]); ?> <?php if (empty($vo['sub_menu'])) echo 'no-submenu'; ?>"> <!-- Add the class "no-submenu" to menu items with no sub menu -->
						<?php echo ($vo["title"]); ?>
					</a>
                    <?php if ($vo['sub_menu']){
                        echo '<ul>';
                        foreach($vo['sub_menu'] as $value){
                            echo '<li><a href="'.$value['url'].'" title="'.$value['title'].'" class="'.$currSubNav[$value['ma']].'" >'.$value['title'].'</a></li>';
                        }
                        echo '</ul>';
                    } ?>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul> <!-- End #main-nav -->
		
		</div></div> <!-- End #sidebar -->
		<div id="main-content"> <!-- Main Content Section with everything -->
			
			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
					Download From <a href="http://www.exet.tk">exet.tk</a></div>
				</div>
			</noscript>
			
			<!-- Page Head -->
			<h2>Welcome <?php echo ($user["username"]); ?></h2>
			<p id="page-intro">What would you like to do?</p>
			<ul class="shortcut-buttons-set">
				
				<li><a class="shortcut-button" href="<?php echo U('main/cateAdd');?>"><span>
					<img src="__APP__/resources/image/console/icons/pencil_48.png" alt="icon" /><br />
					添加分类
				</span></a></li>
				
				<li><a class="shortcut-button" href="<?php echo U('main/articleAdd');?>"><span>
					<img src="__APP__/resources/image/console/icons/paper_content_pencil_48.png" alt="icon" /><br />
					添加文章
				</span></a></li>
				
				<li><a class="shortcut-button" href="<?php echo U('ad/adAdd');?>"><span>
					<img src="__APP__/resources/image/console/icons/image_add_48.png" alt="icon" /><br />
					添加广告
				</span></a></li>
				
				<li><a class="shortcut-button" href="#"><span>
					<img src="__APP__/resources/image/console/icons/clock_48.png" alt="icon" /><br />
					Add an Event
				</span></a></li>
				
				<li><a class="shortcut-button" href="#messages" rel="modal"><span>
					<img src="__APP__/resources/image/console/icons/comment_48.png" alt="icon" /><br />
					Open Modal
				</span></a></li>
				
			</ul><!-- End .shortcut-buttons-set -->
			<div class="clear"></div> <!-- End .clear -->
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>添加分类</h3>
					<div class="clear"></div>
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
                    <div class="tab-content" id="tab2">
					
						<form action="<?php echo U('main/cateAdd');?>" method="post">
							
							<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
								<p>
                                    <label><span class="c1">*</span>选择上级分类：</label>              
                                    <select name="fcid" class="small-input">
                                            <option value="0">添加顶级分类</option>
                                            <?php if(is_array($data)): $i = 0; $__LIST__ = $data;$_count = count($__LIST__);if( $_count==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($vo["cid"]); ?>"><?php echo ($vo["cname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                    </select> 
								</p>
                                <p>
                                    <label><span class="c1">*</span>分类名称：</label>
                                    <input class="text-input large-input" type="text" id="title" name="cname" />
                                    <br />
								</p>
                                <p>
                                    <label><span class="c1">*</span>导航显示：</label>
                                    是<input type="radio" name="index_display" value="1"/>
                                    否<input type="radio" name="index_display" value="2" checked="checked"/>
                                    <br />
								</p>
                                <p>
                                    <label>首页导航排序：</label>
                                    <input class="text-input small-input" type="text" name="order" />
                                    <br />
                                    <small>设置了导航显示后才有效。</small>
                                </p>
                                <p>
                                    <label><span class="c1">*</span>单页分类：</label>
                                    是<input type="radio" name="single_page" value="1"/>
                                    否<input type="radio" name="single_page" value="2" checked="checked"/>
                                    <br />
                                    <small>点击此分类时只会读取此分类下的最新的一篇文章。</small>
								</p>
								<p>
									<input class="button" type="submit" value="提交" />
								</p>
								
							</fieldset>
							
							<div class="clear"></div><!-- End .clear -->
							
						</form>
						
					</div> <!-- End #tab2 --> 					
				</div> <!-- End .content-box-content -->
			</div> <!-- End .content-box -->

			<div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Copyright 2011 搜我 | Powered by <a href="<?php echo U('Home-main/index');?>">搜我</a> | <a href="#">Top</a>
				</small>
			</div><!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div></body>
  

<!-- Download From www.exet.tk-->
</html>